﻿using System;
using System.Collections.Generic;
namespace mscook.core.services
{
    public interface IArticleTemplateFactory
    {
        void GenerateHtmlFile(ArticleKey articleKey);
        string GetArticleComponentDirectory();
        string GetArticleControlUnitDirectory();
        string GetArticleEditableControlUnitDirectory();
        string GetArticleTemplateDirectory();
        System.Collections.Generic.IList<ArticleComponent> LoadArticleComponent(ArticleKey articleKey);
        void PostDataOfUnit(DataOfUnit dataOfUnit, ArticleKey articleKey);
        string SelectHtmlSnippetsOfUnits(System.Collections.Generic.IList<ArticleComponent> articleComponents, ArticleKey articleKey);
        string SelectHtmlSnippetsOfUnits(ArticleKey articleKey);
        IList<ArticlePublishDetail> SelectArticlePublishDetails(int year, int month, int start, int limit, out long total);
        IList<ArticlePublishDetail> SelectArticlePublishDetails(int year, int month);
        ArticlePublishDetail SelectArticlePublishDetailBy(int year, int month, string alias);
        void DeleteArticle(int year, int month, int index, string alias);
    }
}
